import 'package:flutter/src/painting/text_span.dart';
import 'package:myturngame/Theme.dart';
import 'package:myturngame/bean/function/abstract_function.dart';

///技能强化装备属性
class Skill001EquipFunction extends AbstractEquipFunction {
  ///攻击次数增加
  int addAttackCount;

  Skill001EquipFunction(this.addAttackCount);

  @override
  List<TextSpan> description() {
    return [
      TextSpan(text: "横扫 伤害段数 +$addAttackCount", style: textStyleFunctionSkill)
    ];
  }
}

class Skill002EquipFunction extends AbstractEquipFunction{

  int criticalRate;

  Skill002EquipFunction(this.criticalRate);

  @override
  List<TextSpan> description() {
    return [
      TextSpan(text: "猛击 时$criticalRate%概率触发暴击", style: textStyleFunctionSkill)
    ];
  }
}
